package org.black.phoneUtility.util;

import android.app.AlarmManager;
import android.app.PendingIntent;
import android.os.Build;

public class AlarmManagerUtility {
	public static void setAlarm(AlarmManager alarmManager, int type, long time,
			PendingIntent pendingIntent) {
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
			alarmManager.setExact(type, time, pendingIntent);
		} else {
			alarmManager.set(type, time, pendingIntent);
		}
	}

}
